package com.example.ricebibackend.common.errorcode;

/**
 * service层错误码常量
 */
public interface ServiceErrorCodeConstants {
    // ===== 用户业务异常 =====
    ErrorCode USER_REG_PARAM_NULL = new ErrorCode(100, "用户注册信息为空!");
    ErrorCode USER_REG_PWD_ERROR = new ErrorCode(101, "用户注册密码非法!");
    ErrorCode USER_REG_MOBILE_ERROR = new ErrorCode(102, "用户注册手机号非法!");
    ErrorCode USER_REG_MAIL_ERROR = new ErrorCode(103, "用户注册邮箱非法!");
    ErrorCode USER_REG_IDENTITY_ERROR = new ErrorCode(104, "用户注册身份非法!");
    ErrorCode USER_REG_MAIL_EXISTS = new ErrorCode(105, "用户注册邮箱已存在!");
    ErrorCode USER_REG_PHONE_EXISTS = new ErrorCode(106, "用户注册电话号码已存在!");
    ErrorCode USER_LOGIN_NOT_EXISTS = new ErrorCode(107, "用户登录身份不存在!");
    ErrorCode USER_LOGIN_PARAM_NULL = new ErrorCode(108, "用户登录参数为空!");
    ErrorCode USER_LOGIN_PHONE_ERROR = new ErrorCode(109, "用户登录手机号格式错误!");
    ErrorCode USER_LOGIN_CODE_ERROR = new ErrorCode(110, "用户登录验证码错误!");
    ErrorCode USER_LOGIN_IDENTITY_ERROR = new ErrorCode(111, "用户登录身份错误!");
    ErrorCode USER_LOGIN_PWD_ERROR = new ErrorCode(112, "用户登录密码错误!");
    // ===== 验证码业务异常 =====
    ErrorCode USER_VERIFY_PHONE_ERROR = new ErrorCode(201, "用户验证电话号码格式错误!");
    ErrorCode USER_VERIFY_SEND_ERROR = new ErrorCode(202, "用户发送验证码失败!");
    // ===== 分析模块业务异常 =====
    ErrorCode ANALYSIS_PARSE_EXCEL_ERROR = new ErrorCode(300, "分析模块解析EXCEL数据异常!");
    ErrorCode ANALYSIS_PARAMS_GOAL_NULL = new ErrorCode(301, "分析模块分析目标参数为空!");
    ErrorCode ANALYSIS_PARAMS_UPLOAD_USER_ID_NULL = new ErrorCode(302, "分析模块上传用户ID参数错误!");
    ErrorCode ANALYSIS_PARAMS_CHART_NAME_NULL = new ErrorCode(303, "分析模块图表名称参数为空!");
    ErrorCode ANALYSIS_UPDATE_STATUS_ERROR = new ErrorCode(304, "分析模块修改任务状态失败!");
    // ===== AI模块业务异常 =====
    ErrorCode AI_PARSE_ERROR = new ErrorCode(400, "AI模块分析异常!");
    // ===== 图表模块业务异常 =====
    ErrorCode CHART_SHOW_PARAM_ERROR = new ErrorCode(500, "图表展示参数错误!");
    ErrorCode CHART_SHOW_SQL_ERROR = new ErrorCode(501, "图表展示SQL解析错误!");
    ErrorCode CHART_FILE_EXCEED_MAX_SIZE = new ErrorCode(502, "图表文件超出最大限制!");
    ErrorCode CHART_FILE_POSTFIX_ERROR = new ErrorCode(503, "图表文件后缀格式不合法!");
}
